import {Component, Input, Output, EventEmitter, ChangeDetectionStrategy} from "@angular/core";
@Component({
  selector: 'person-list',
  templateUrl: 'person-list.html',
  changeDetection: ChangeDetectionStrategy.OnPush
})
export class PersonList {
  @Input() people
  @Input() filter = person => true

  @Output() addGuest = new EventEmitter()
  @Output() removeGuest = new EventEmitter()
  @Output() removePerson = new EventEmitter()
  @Output() toggleAttending = new EventEmitter()
}
